//
//  NetEaseDataService.h
//  item-NetEaseNews-tyw
//
//  Created by tyw on 15/9/30.
//  Copyright (c) 2015年 tyw. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef void(^BlockType)(id result);

@interface NetEaseDataService : NSObject

#pragma mark - 通用型的网络接口
//通用型的网络接口
+ (AFHTTPRequestOperation*)netEaseRequestUrl:(NSString*)urlStr
               httpMethod:(NSString*)method
                   params:(NSMutableDictionary*)params
                    datas:(NSMutableDictionary*)datas
                    block:(BlockType)block;


#pragma mark - 新闻页各个页面的数据请求
//新闻页面，头条 的数据获取
+ (AFHTTPRequestOperation*)newsHeadNewsDataRequestFrom:(NSInteger)from
                                                  size:(NSInteger)size
                                                 block:(BlockType)block;
//新闻页面，NBA 的数据获取
+ (AFHTTPRequestOperation*)newsNBANewsDataRequestFrom:(NSInteger)from
                                                 size:(NSInteger)size
                                                block:(BlockType)block;
//新闻页面，娱乐 的数据获取
+ (AFHTTPRequestOperation*)newsEntertainmentNewsDataRequestFrom:(NSInteger)from
                                                           size:(NSInteger)size
                                                          block:(BlockType)block;
//新闻页面，时尚 的数据获取
+ (AFHTTPRequestOperation*)newsFashionNewsDataRequestFrom:(NSInteger)from
                                                     size:(NSInteger)size
                                                    block:(BlockType)block;
//新闻页面，汽车 的数据获取
+ (AFHTTPRequestOperation*)newsCarNewsDataRequestFrom:(NSInteger)from
                                                 size:(NSInteger)size
                                                block:(BlockType)block;
//新闻页面，房产 的数据获取
+ (AFHTTPRequestOperation*)newsHouseNewsDataRequestFrom:(NSInteger)from
                                                   size:(NSInteger)size
                                                  block:(BlockType)block;
//新闻页面，段子 的数据获取
+ (AFHTTPRequestOperation*)newsDuanziNewsDataRequestSize:(NSInteger)size
                                                   block:(BlockType)block;
//24小时要闻 的数据获取
+ (AFHTTPRequestOperation*)news24HoursDataRequestFrom:(NSInteger)from
                                                   size:(NSInteger)size
                                                  block:(BlockType)block;


#pragma mark -  新闻图集 数据请求
//新闻页 图集
+ (AFHTTPRequestOperation*)photoShowDataRequestSkipId:(NSString*)skipId
                                                       type:(NSString*)type
                                                      block:(BlockType)block;


#pragma mark - 新闻细节页 数据请求
//新闻页 新闻详情页
+ (AFHTTPRequestOperation*)newsDetailDataRequestNewsId:(NSString*)newsId
                                                 block:(BlockType)block;

#pragma mark - 跟帖详情 数据请求
+ (AFHTTPRequestOperation*)replyDetailRequestReplyId:(NSString*)replyId
                                           replyType:(NSString*)replyType       //hot、normal
                                               block:(BlockType)block;

#pragma mark - 阅读页 数据请求
+ (AFHTTPRequestOperation*)readerRequestSize:(NSInteger)size
                                       block:(BlockType)block;

#pragma mark - 视听页 数据请求
//视频
+ (AFHTTPRequestOperation*)mediaVideoRequestFrom:(NSInteger)from
                                            size:(NSInteger)size
                                           block:(BlockType)block;
//电台
+ (AFHTTPRequestOperation*)mediaRadioRequestBlock:(BlockType)block;

#pragma mark - 发现页 数据请求
+ (AFHTTPRequestOperation*)foundDataRequestBlock:(BlockType)block;

@end
